package com.yangsy.qr_code_demo.service;

import com.yangsy.qr_code_demo.entity.dto.CarDto;
import com.yangsy.qr_code_demo.entity.model.Car;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

/**
 * @author yangSy
 * @date 2024/7/31 10:01
 */
@Mapper
public interface MapStructService {

    @Mappings({
        @Mapping(source = "id",target = "dtoId")
    })
    CarDto getCarMessage(Car car);


}
